package demo;

public class Test1 {

//    public static void main(String[] args) {
//        func1();
//    }
//    public static void main2(String[] args) throws CloneNotSupportedException{
//       int i = 0 ;
//       if(i == 0){
//         throw new CloneNotSupportedException() ;
//       }
//
//    }
//    public static void func1() throws ArrayIndexOutOfBoundsException{
//        System.out.println("123");
//        throw new ArrayIndexOutOfBoundsException() ;
//    }

    public static void main(String[] args) throws CloneNotSupportedException{
        func() ;
    }
    public static void func() throws CloneNotSupportedException{
        throw new CloneNotSupportedException() ;
    }


}

